<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <link rel="stylesheet" type="text/css" href="css/Iframe.css" />
    <link rel="stylesheet" href="utilLib/bootstrap.min.css" type="text/css" media="screen" />
</head>
<body>
<span class="cp_title">新闻管理</span>
<div class="add_cp">
    <a href="AddNews.html">+添加新闻</a>
</div>
<div class="table_con">
    <table>
        <tr class="tb_title">
            <td width="10%">ID</td>
            <td width="30%">标题</td>
            <td width="12%">内容</td>
            <td width="12%">作者</td>
            <td width="10%">时间</td>
            <td width="26%">操作</td>
        </tr>
        <c:forEach var="n" items="${news}" >
            <tr>
                <td width="5%">${n.id}</td>
                <td width="20%">${n.title}</td>
                <td width="40%">${n.content} </td>
                <td width="5%">${n.author}</td>
                <td width="5%"></td>

                <td width="25%">
                    <a href="editServlet?newid=${n.id}" class="del_btn">编辑</a>
                    <a href="viewServlet?newid=${n.id}" class="del_btn">查看</a>
                    <a href="deleteServlet?newid=${n.id}" class="del_btn">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>